package com.example.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
    @Bean
    public MyBean myBean() throws Exception {
        Thread.sleep(100);
        System.out.println("MyBean created");
        return new MyBean();
    }
}
